import { createStore } from 'vuex'
import createPersistedState from 'vuex-persistedstate'

const modulesA = createStore({
    state() {
        return {

        }
    },
    mutations: {

    },
    actions: {},
    modules: {},
    plugins: [createPersistedState({
        storage: window.localStorage,
        reducer(val) {
            return {
                // 只保存module user内部所有变量持久化
                // history: val.history
            }
        }
    })],
})
export default modulesA;